package com.yxj.cloudeureka.listen;

import org.springframework.cloud.netflix.eureka.server.event.EurekaInstanceCanceledEvent;
import org.springframework.stereotype.Component;

/**
 * ClassName: TestEvent
 * Package: com.yxj.cloudeureka.listen
 * Description:
 *
 * @Author 杨小洁- 重人科
 * @Create: 2024-11-14 12:08
 * @Version 1.0
 */
@Component
public class TestEvent {
    public void listen(EurekaInstanceCanceledEvent event) {
        // 发邮件 短信
        System.out.println("下线: " + event.getServerId());
    }
}
